package FirstExampe.last;

public class ChildPrice extends Price {
	@Override
	public double amount(int daysRented) {
		double result = 2;
		if (daysRented > 2) {
			result += (daysRented - 2) * 1.5;
		}
		return result;
	}
}
